var version = localStorage.getItem("version")
if(!version || version==null || version=="undefined"){
    var nowdate = new Date();
    version = nowdate.getFullYear().toString()+"."+(nowdate.getMonth()+1)+"."+nowdate.getDate();
}


function loadcss(url, isappendversion) {
    if (isappendversion) {
        url += "?version=" + version;
    }
    document.write('<link rel="stylesheet" href= '+url+'></link>');
}

function loadjs(url, isappendversion) {
    if (isappendversion) {
        url += "?version=" + version;
    }
    document.write('<script src= ' + url + '></script>');
}

loadcss(GetRootPath()+'plugin/webeditor/css/quill.core.css',false)
loadcss(GetRootPath()+'plugin/webeditor/css/quill.bubble.css',false)
loadcss(GetRootPath()+'plugin/webeditor/css/quill.snow.css',false)
loadjs(GetRootPath() + 'plugin/webeditor/js/quill.js', false);
loadjs(GetRootPath() + 'plugin/webeditor/js/vue-quill-editor.js', false);

//引入相关js，css
var uploadcss = GetRootPath() + 'component/commonupload/index.css';
var uploadjs = GetRootPath() + 'component/commonupload/index.js';
var editorcss =  GetRootPath() + 'component/commonwebeditor/index.css';
var editorjs = GetRootPath() + 'component/commonwebeditor/index.js';


loadcss(uploadcss, true)
loadjs(uploadjs, true);
loadcss(editorcss, true)
loadjs(editorjs, true);

